const express=require('express')  //导入express
const router=express.Router() //创建路由对象
const dueOpt = require('../data/dueOpt.js')

router.get('/record', function(req,res){  //挂载获取用户列表的路由
    console.log(req.query.step);
    let response = {};
    switch (req.query.step) {
        case "1":
            response = dueOpt.step1
            break
        case "2":
            response = dueOpt.step2
            break
        case "3":
            break
        case "4":
            response = dueOpt.step4
            break
        case "5":
            break
        case "6":
            break
        default:
            break
    }
    res.send(response)
})

module.exports=router //向外导出对象